class Counter

  def self.counted_new
    self.count += 1
    new_count = new
    new_count.birth_order = self.count
    new_count
  end

  def self.count
    @count = 0 if @count.nil?
    @count
  end

  def self.count=(value)
    @count = value
  end

  def self.reset
    self.count = nil
  end

  # instance method

  attr_accessor :birth_order

end